package com.day19.Copy;

import java.io.*;

public class CopyJavaDemo {
    public static void main(String[] args) throws IOException {

    BufferedReader br = new BufferedReader(new FileReader("myOtherStream\\\\PrintStreamDemo.java"));
    PrintWriter pw = new PrintWriter(new FileWriter("myOtherStream\\\\PrintStreamDemo.java"), true);
    String line;
    while((line =br.readLine())!=null)

    {
        pw.println(line);
    }
    pw.close();
    br.close();
}

}
